<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Coupon extends Model
{

    /**
     * 表名称
     * @var $table;
     */
    protected $table = 'coupon';

    /**
     * 主键
     * @var $primaryKey
     */
    protected $primaryKey = 'id';


    use SoftDeletes;


    protected $dates = ['deleted_at'];

    /**
     * 自动填充字段
     * @var $fillable
     */
    protected $fillable = [
        'name', 'value', 'amount', 'receive_amount', 'limit_fir', 'type', 'remarks', 'start_time', 'end_time', 'updated_at', 'deleted_at', 'coupon_thumb'
    ];

}
